package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @Auther: xiaqun
 * @Description: 分案导入模型
 * @Date: 13:56 2019/10/17
 */

@Data
@Document(indexName = Constants.DISTRIBUTE_MODEL, type = Constants.DISTRIBUTE_MODEL, shards = 1, replicas = 0)
@ApiModel(value = "分案导入模型", description = "分案导入模型")
public class DistributeModel {
    @ApiModelProperty(value = "主键ID")
    @Id
    private String id;

    @ApiModelProperty(value = "案件编号")
    private String caseNumber;

    @ApiModelProperty(value = "批次号")
    private String batchNumber;

    @ApiModelProperty(value = "委托方ID")
    private String principalId;

    @ApiModelProperty(value = "委托方名称")
    private String principalName;

    @ApiModelProperty(value = "姓名")
    private String personalName;

    @ApiModelProperty(value = "证件号")
    private String certificateNo;

    @ApiModelProperty(value = "卡号")
    private String cardNo;

    @ApiModelProperty(value = "委案金额")
    private Double overdueAmtTotal;

    @ApiModelProperty(value = "欠款金额")
    private Double leftAmt;

    @ApiModelProperty(value = "员工工号")
    private String username;

    @ApiModelProperty(value = "确认标记 0-未确认 1-已确认")
    private Integer flag = 0;
}
